package ch8new;

public class Person {
	private String name;

	Person(String name) {
		// this.name = name;
		System.out.println("konstruktor start");
		setName(name);
		System.out.println("konstruktor end");
	}

	public String getName() {
		System.out.println("geter inside");
		return this.name;
		
	}

	public void setName(String name) {
		System.out.println("seter start");
		this.name = name;
		System.out.println("seter end");
	}
}
